package com.sservice.model.dao;

import com.sservice.model.entity.SalePersonAccount;
import com.sservice.model.vo.SalePersonAccountVo;

import java.util.List;

public interface ISalePersonAccountDao {
    int deleteByPrimaryKey(Integer id);

    int insert(SalePersonAccount record);

    int insertSelective(SalePersonAccount record);

    /**
     * 分页
     *
     * @param spav
     * @return
     */
    List<SalePersonAccountVo> queryByPage(SalePersonAccountVo spav);

    List<SalePersonAccount> proofreadSelect();

    /**
     * @param spav
     * @return
     */
    Integer queryCountByPage(SalePersonAccountVo spav);

    /**
     * 获取销售员账户
     *
     * @param saleId
     * @return
     */
    SalePersonAccount selectBySaleID(String saleId);

    SalePersonAccount selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SalePersonAccount record);

    int updateByPrimaryKey(SalePersonAccount record);
}